package com.yootk.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("member")    // 映射表名称
public class Member {

    @TableId    // 主键字段
    private String mid;

    private String name;

    private Integer age;

    private Double salary;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private String content;

    @TableLogic     // 逻辑删除处理
    private Integer isdel;
}
